package com.tensquare.article.dao;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 评论Dao
 * @author fangyu
 * @version v1.0.0
 * @date 2020/10/13 7:46 下午
 */
public interface CommentDao extends MongoRepository<Comment, String> {

    /**
     * 根据文章ID查询评论列表
     * @param articleId 文章ID
     * @return List
     */
    public List<Comment> findByArticleid(String articleId);
}
